/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmPemesananBarangRuangan.java
 *
 * Created on Jan 24, 2012, 9:05:59 PM
 */
package SIMRS.RawatInap.view;

import usu.widget.Form;

/**
 *
 * @author asus A42J-i3
 */
public class frmPemesananBarangRuangan extends Form {

    /** Creates new form frmPemesananBarangRuangan */
    public frmPemesananBarangRuangan() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        table1 = new SIMRS.RawatInap.widget.Table();
        jScrollPane2 = new javax.swing.JScrollPane();
        table2 = new SIMRS.RawatInap.widget.Table();
        pnlForm1 = new SIMRS.RawatInap.widget.PnlForm();
        txtRuanganPemesan = new SIMRS.RawatInap.widget.TextBox();
        label4 = new SIMRS.RawatInap.widget.Label();
        label2 = new SIMRS.RawatInap.widget.Label();
        txtJumlahBarang = new SIMRS.RawatInap.widget.TextBox();
        btnKeluar = new SIMRS.RawatInap.widget.button2();
        btnHapus = new SIMRS.RawatInap.widget.button2();
        btnBatal = new SIMRS.RawatInap.widget.button2();
        btnTambah = new SIMRS.RawatInap.widget.button2();
        btnSimpan = new SIMRS.RawatInap.widget.button2();
        label11 = new SIMRS.RawatInap.widget.Label();
        scrollPane1 = new SIMRS.RawatInap.widget.ScrollPane();
        jScrollPane3 = new javax.swing.JScrollPane();
        tblPemesananBarangRuangan = new SIMRS.RawatInap.widget.Table();
        cmbNamaRuanganPemesan = new javax.swing.JComboBox();
        label3 = new SIMRS.RawatInap.widget.Label();
        txtJumlahBarang1 = new SIMRS.RawatInap.widget.TextBox();
        label6 = new SIMRS.RawatInap.widget.Label();
        label5 = new SIMRS.RawatInap.widget.Label();
        txtTanggalOrder = new com.toedter.calendar.JDateChooser();
        cmbRuanganPemesan = new javax.swing.JComboBox();
        cmbJenisBarang = new javax.swing.JComboBox();
        label7 = new SIMRS.RawatInap.widget.Label();

        table1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(table1);

        table2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane2.setViewportView(table2);

        setTitle("[ :: Pemesanan Barang Ruangan :: ]");
        setAnimationHide(usu.widget.constan.Animation.HIDE_TO_RIGHT);
        setAnimationShow(usu.widget.constan.Animation.SHOW_FROM_TOP);
        setResizable(false);
        setUndecorated(true);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        pnlForm1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(112, 138, 31), 3, true));
        pnlForm1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        pnlForm1.add(txtRuanganPemesan, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 150, 147, -1));

        label4.setText("Ruangan Tujuan");
        pnlForm1.add(label4, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 126, -1, -1));

        label2.setText("Tanggal Order");
        pnlForm1.add(label2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 120, -1, 20));
        pnlForm1.add(txtJumlahBarang, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 230, 100, -1));

        btnKeluar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_close.png"))); // NOI18N
        btnKeluar.setText("Keluar");
        btnKeluar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnKeluarActionPerformed(evt);
            }
        });
        pnlForm1.add(btnKeluar, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 440, -1, -1));

        btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_hapus.png"))); // NOI18N
        btnHapus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnHapusActionPerformed(evt);
            }
        });
        pnlForm1.add(btnHapus, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 220, 30, -1));

        btnBatal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_batal.png"))); // NOI18N
        btnBatal.setText("Batal");
        pnlForm1.add(btnBatal, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 440, -1, 30));

        btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_tambah.png"))); // NOI18N
        pnlForm1.add(btnTambah, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 220, 30, -1));

        btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/bt_simpan.png"))); // NOI18N
        btnSimpan.setText("Simpan");
        pnlForm1.add(btnSimpan, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 440, -1, -1));

        label11.setForeground(new java.awt.Color(255, 255, 255));
        label11.setText("Pemesanan Barang Ruangan");
        label11.setFont(new java.awt.Font("Tahoma", 1, 24));
        pnlForm1.add(label11, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, -1, -1));

        tblPemesananBarangRuangan.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane3.setViewportView(tblPemesananBarangRuangan);

        scrollPane1.setViewportView(jScrollPane3);

        pnlForm1.add(scrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 270, 510, 130));

        cmbNamaRuanganPemesan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        pnlForm1.add(cmbNamaRuanganPemesan, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 300, 147, -1));

        label3.setText("Nama Ruangan Pemesan");
        pnlForm1.add(label3, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 120, -1, -1));
        pnlForm1.add(txtJumlahBarang1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 230, 150, -1));

        label6.setText("Jenis Barang");
        pnlForm1.add(label6, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 210, -1, -1));

        label5.setText("Nama Barang");
        pnlForm1.add(label5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 200, -1, 30));
        pnlForm1.add(txtTanggalOrder, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 150, 130, -1));

        cmbRuanganPemesan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        pnlForm1.add(cmbRuanganPemesan, new org.netbeans.lib.awtextra.AbsoluteConstraints(340, 150, 180, -1));

        cmbJenisBarang.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        pnlForm1.add(cmbJenisBarang, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 230, 130, -1));

        label7.setText("Jumlah Barang");
        pnlForm1.add(label7, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 210, -1, -1));

        getContentPane().add(pnlForm1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 530, 500));

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-532)/2, (screenSize.height-501)/2, 532, 501);
    }// </editor-fold>//GEN-END:initComponents

    private void btnKeluarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnKeluarActionPerformed
        dispose();        // TODO add your handling code here:
    }//GEN-LAST:event_btnKeluarActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        this.dispose();  // TODO add your handling code here:
    }//GEN-LAST:event_formWindowClosing

    private void btnHapusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHapusActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnHapusActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private SIMRS.RawatInap.widget.button2 btnBatal;
    private SIMRS.RawatInap.widget.button2 btnHapus;
    private SIMRS.RawatInap.widget.button2 btnKeluar;
    private SIMRS.RawatInap.widget.button2 btnSimpan;
    private SIMRS.RawatInap.widget.button2 btnTambah;
    private javax.swing.JComboBox cmbJenisBarang;
    private javax.swing.JComboBox cmbNamaRuanganPemesan;
    private javax.swing.JComboBox cmbRuanganPemesan;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private SIMRS.RawatInap.widget.Label label11;
    private SIMRS.RawatInap.widget.Label label2;
    private SIMRS.RawatInap.widget.Label label3;
    private SIMRS.RawatInap.widget.Label label4;
    private SIMRS.RawatInap.widget.Label label5;
    private SIMRS.RawatInap.widget.Label label6;
    private SIMRS.RawatInap.widget.Label label7;
    private SIMRS.RawatInap.widget.PnlForm pnlForm1;
    private SIMRS.RawatInap.widget.ScrollPane scrollPane1;
    private SIMRS.RawatInap.widget.Table table1;
    private SIMRS.RawatInap.widget.Table table2;
    private SIMRS.RawatInap.widget.Table tblPemesananBarangRuangan;
    private SIMRS.RawatInap.widget.TextBox txtJumlahBarang;
    private SIMRS.RawatInap.widget.TextBox txtJumlahBarang1;
    private SIMRS.RawatInap.widget.TextBox txtRuanganPemesan;
    private com.toedter.calendar.JDateChooser txtTanggalOrder;
    // End of variables declaration//GEN-END:variables
}
